package com.gzasc.order.service;

import com.gzasc.order.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 声明fegin以及调用微服务的名字
 */
@FeignClient("goods")
public interface GoodService {
    @RequestMapping("goods/one")
    Goods findById(@RequestParam("id") Integer id);
}
